#include<stdio.h>
#include<math.h>
int main(int argc, char const *argv[])
{
    int a,b,sum=0;
    char num;
    num = getchar();
    ///求各位数的和
    while (num!='\n')
    {
        switch (num)
        {
        case '1':
            sum+=1;
            break;
        case '2':
            sum+=2;
            break;
        case '3':
            sum+=3;
            break;
        case '4':
            sum+=4;
            break;
        case '5':
            sum+=5;
            break;
        case '6':
            sum+=6;
            break;
        case '7':
            sum+=7;
            break;
        case '8':
            sum+=8;
            break;
        case '9':
            sum+=9;
            break;

        default:
            sum+=0;
            break;
        }
        num=getchar();
    }
    
    ///以下计算sum的位数
    int c=0;
    b=sum;
    while (b)
    {
        b=b/10;
        c++;
    }
    ///输出
    b=sum;
    for (int i = 1; i <= c; i++)
            {
                a=b/pow(10,c-i);
                switch (a)
                {
                    case 0:printf("ling");break;
                    case 1:printf("yi");break;
                    case 2:printf("er");break;
                    case 3:printf("san");break;
                    case 4:printf("si");break;
                    case 5:printf("wu");break;
                    case 6:printf("liu");break;
                    case 7:printf("qi");break;
                    case 8:printf("ba");break;
                    case 9:printf("jiu");break;
                    
                    default:break;
                }
                b=b-a*pow(10,c-i);
                if (c-i)
                    printf(" ");
            }
            printf("end");
    return 0;
}
